﻿using System.ComponentModel.DataAnnotations;

namespace RuoVea.OmiApi.UserRole.Service.Dto;

/// <summary>
/// 
/// </summary>
public class RoleInput : BaseIdInput
{
    /// <summary>
    /// 状态
    /// </summary>
    public virtual YesOrNot IsDisable { get; set; }
}

/// <summary>
/// 
/// </summary>
public class PageRoleInput : BasePageInput
{
    /// <summary>
    /// 名称
    /// </summary>
    public virtual string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public virtual string Code { get; set; }
}

/// <summary>
/// 
/// </summary>
public class AddRoleInput : SysRole
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "角色名称不能为空")]
    public override string Name { get; set; }

    /// <summary>
    /// 菜单Id集合
    /// </summary>
    public List<long> MenuIdList { get; set; }
}

/// <summary>
/// 
/// </summary>
public class DeleteRoleInput : BaseIdInput
{
}